package br.univas.to;

import java.util.ArrayList;



public class FilmeTo {
	
	private String title;
	private int year;
	private String gender;
	private ArrayList<String> actor;
	private String director;
	private int note;
	
	 public FilmeTo(){
		 
	 }
	 public FilmeTo(String title, int year, String gender, ArrayList<String> actor, String director) {
	        this.title = title;
	        this.year = year;
	        this.gender = gender;
	        this.actor = actor;
	        this.director = director;
	    }
	 
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}
	
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	
	public ArrayList<String> getActor() {
		return actor;
	}
	public void setActor(ArrayList<String> actor) {
		this.actor = actor;
	}
	public int getNote() {
		return note;
	}
	public void setNote(int note) {
		this.note = note;
	}
	
	public String getDirector() {
		return director;
	}
	public void setDirector(String director) {
		this.director = director;
	}
	/*
	@Override
	   public boolean equals(Object obj) {
	        if (obj == null)
	            return false;

	        if (!(obj instanceof Filme))
	            return false;

	        FilmeTo compare = (FilmeTo) obj;
	        
	        return compare.title.equals(this.title);
	    }

	    @Override
	    public int hashCode() {
	        int hash = 1;

	        return hash * 31 + title.hashCode();
	    }*/
	 @Override
	    public String toString() {
	        return "FilmeTo{" + "title=" + title + ", year=" + year + ", gender=" + gender + ", actor=" + actor +",director=" + director +  '}';
	    }
}
